package com.glenet.salary.dao;

import java.util.ArrayList;
import java.util.List;

import org.apache.ibatis.session.SqlSession;

import com.glenet.salary.entities.HrMap;
import com.glenet.salary.util.SessionFactoryUtil;

/**
 * @author MeiWenhui
 *
 */
public class HrMapDao extends HrDaoSuport{
	
	@SuppressWarnings("unchecked")
	public List<HrMap> getMaps(String t){
		List<HrMap> maps = new ArrayList<HrMap>();
		try {
			SqlSession session = SessionFactoryUtil.openSession();
			maps = (List<HrMap>) session.selectList("HrMap.getMaps", t);
			session.commit();
		} catch (Exception e) {
			e.printStackTrace();
		}
		return maps;
	}
	
	
	
}
